package com.easy;

/**
 * Created by Lxk on 2019/11/9.
 */
public class Solution796 {

    public boolean rotateString(String A, String B) {
        if (A == null || B == null) {
            return false;
        }
        if (A.length() != B.length()) {
            return false;
        }
        String all = B + B;
        if (all.contains(A)) {
            return true;
        } else {
            return false;
        }
    }

    public static void main(String[] args) {

    }

}
